<template>
  <q-layout-page>
    <q-layout-page-item>
      <q-timer-btn :second="second" @click="sendCode" />
    </q-layout-page-item>
  </q-layout-page>
</template>
<script>
export default {
  name: 'q-timer-btn-demo',
  data() {
    return {
      second: 10
    }
  },
  methods: {
    sendCode() {
      console.log('点击获取验证码')
    }
  }
}
</script>
